import { defineStore } from "pinia";
import { ref } from "vue";

export const userIdStore = defineStore(
    'id',
    ()=>{

        const id = ref('');

        const setId = (newid)=>{
            id.value = newid
        }
    
        const removeId = ()=>{
            id.value=''
        }
        return {
            id,setId,removeId
        }
    },
    {
        persist:true
    }
)